<?php


namespace app\admin\validate;


use think\Validate;

class UserValidate extends Validate
{

    protected $rule = [
        'user_name'  =>  'require',
        'role_id' =>  'require',
        'password' => 'require',
        'real_name' => 'require',
        'status' => 'require'
    ];

    protected $message = [
        'user_name.require' => '用户名必须填写',
        'role_id.require' => '角色必须选择',
        'password.require' => '密码必须填写',
        'real_name.require' => '真实姓名必须填写',
        'status.require' => '启用状态必须选择'
    ];


}